﻿namespace Methods
{
    using System;

    public class GetMaxMethod
    {
        // 1.1.9.02. Create a method GetMax() with two integer (int) parameters, that returns maximal of the two numbers.
        // Write a program that reads three numbers from the console and prints the biggest of them.
        // Use the GetMax() method you just created. Write a test program that validates that the methods works correctly.

        public static int GetMax(int firstInt, int secondInt)
        {
            return Math.Max(firstInt, secondInt);
        }
        static void Main()
        {
            int[] nums = new int[3];
            nums[0] = int.Parse(Console.ReadLine());
            for (int i = 1; i < 3; i++)
            {
                nums[i] = int.Parse(Console.ReadLine());
                nums[i] = GetMax(nums[i], nums[i - 1]);
            }
            Console.WriteLine(nums[nums.Length - 1]);
        }
    }
}